//package com.booter.mvel;
//
//import com.googlecode.aviator.runtime.function.AbstractFunction;
//import com.googlecode.aviator.runtime.function.FunctionUtils;
//import com.googlecode.aviator.runtime.type.AviatorBigInt;
//import com.googlecode.aviator.runtime.type.AviatorObject;
//
//import java.util.Map;
//
///**
// * @author lcw
// * @date 2022/7/29 15:09
// */
//public class AviatorTimeFunction extends AbstractFunction {
//
//
//    private static final long serialVersionUID = -8106777377515869826L;
//
//    @Override
//    public String getName() {
//        return "timeRange";
//    }
//
//    @Override
//    public AviatorObject call(Map<String, Object> env, AviatorObject arg1, AviatorObject arg2) {
//        Number left = FunctionUtils.getNumberValue(arg1, env);
//        Number right = FunctionUtils.getNumberValue(arg2, env);
//        return new AviatorBigInt((right.longValue() - left.longValue()) / 1000);
//    }
//}
